package com.chat.system.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatRecordDTO {
    String id;
    String relationshipId;
    String from;
    String to;
    String type;
    String content;
    @JsonFormat(pattern = "hh:mm")
    Date date;
}
